3.4.15 \(\int (a+b \cos (c+d x))^{5/2} (A+B \cos (c+d x)) \sec ^2(c+d x) \, dx\) [315]
Optimal. Leaf size=296 \[ -\frac {\left (3 a^2 A-6 A b^2-14 a b B\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {\left (3 a^3 A+12 a A b^2+4 a^2 b B+2 b^3 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \sqrt {a+b \cos (c+d x)}}+\frac {a^2 (5 A b+2 a B) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}-\frac {b (3 a A-2 b B) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {a A (a+b \cos (c+d x))^{3/2} \tan (c+d x)}{d} \]
[Out]
-1/3*b*(3*A*a-2*B*b)*sin(d*x+c)*(a+b*cos(d*x+c))^(1/2)/d-1/3*(3*A*a^2-6*A*b^2-14*B*a*b)*(cos(1/2*d*x+1/2*c)^2)
^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2)*(b/(a+b))^(1/2))*(a+b*cos(d*x+c))^(1/2)/d/((a+b
*cos(d*x+c))/(a+b))^(1/2)+1/3*(3*A*a^3+12*A*a*b^2+4*B*a^2*b+2*B*b^3)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+
1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2)*(b/(a+b))^(1/2))*((a+b*cos(d*x+c))/(a+b))^(1/2)/d/(a+b*cos(d*x+c))
^(1/2)+a^2*(5*A*b+2*B*a)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticPi(sin(1/2*d*x+1/2*c),2,2^(1/
2)*(b/(a+b))^(1/2))*((a+b*cos(d*x+c))/(a+b))^(1/2)/d/(a+b*cos(d*x+c))^(1/2)+a*A*(a+b*cos(d*x+c))^(3/2)*tan(d*x
+c)/d
________________________________________________________________________________________
Rubi [A]
time = 0.66, antiderivative size = 296, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 10, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.303, Rules used = {3068, 3128,
3138, 2734, 2732, 3081, 2742, 2740, 2886, 2884} \begin {gather*} -\frac {\left (3 a^2 A-14 a b B-6 A b^2\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {a^2 (2 a B+5 A b) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}+\frac {\left (3 a^3 A+4 a^2 b B+12 a A b^2+2 b^3 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \sqrt {a+b \cos (c+d x)}}-\frac {b (3 a A-2 b B) \sin (c+d x) \sqrt {a+b \cos (c+d x)}}{3 d}+\frac {a A \tan (c+d x) (a+b \cos (c+d x))^{3/2}}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[(a + b*Cos[c + d*x])^(5/2)*(A + B*Cos[c + d*x])*Sec[c + d*x]^2,x]
[Out]
-1/3*((3*a^2*A - 6*A*b^2 - 14*a*b*B)*Sqrt[a + b*Cos[c + d*x]]*EllipticE[(c + d*x)/2, (2*b)/(a + b)])/(d*Sqrt[(
a + b*Cos[c + d*x])/(a + b)]) + ((3*a^3*A + 12*a*A*b^2 + 4*a^2*b*B + 2*b^3*B)*Sqrt[(a + b*Cos[c + d*x])/(a + b
)]*EllipticF[(c + d*x)/2, (2*b)/(a + b)])/(3*d*Sqrt[a + b*Cos[c + d*x]]) + (a^2*(5*A*b + 2*a*B)*Sqrt[(a + b*Co
s[c + d*x])/(a + b)]*EllipticPi[2, (c + d*x)/2, (2*b)/(a + b)])/(d*Sqrt[a + b*Cos[c + d*x]]) - (b*(3*a*A - 2*b
*B)*Sqrt[a + b*Cos[c + d*x]]*Sin[c + d*x])/(3*d) + (a*A*(a + b*Cos[c + d*x])^(3/2)*Tan[c + d*x])/d
Rule 2732
Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[2*(Sqrt[a + b]/d)*EllipticE[(1/2)*(c - Pi/2
+ d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]
Rule 2734
Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[a + b*Sin[c + d*x]]/Sqrt[(a + b*Sin[c +
d*x])/(a + b)], Int[Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 -
b^2, 0] && !GtQ[a + b, 0]
Rule 2740
Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/(d*Sqrt[a + b]))*EllipticF[(1/2)*(c - P
i/2 + d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]
Rule 2742
Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[(a + b*Sin[c + d*x])/(a + b)]/Sqrt[a
+ b*Sin[c + d*x]], Int[1/Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a
^2 - b^2, 0] && !GtQ[a + b, 0]
Rule 2884
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp
[(2/(f*(a + b)*Sqrt[c + d]))*EllipticPi[2*(b/(a + b)), (1/2)*(e - Pi/2 + f*x), 2*(d/(c + d))], x] /; FreeQ[{a,
b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[c + d, 0]
Rule 2886
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Dist
[Sqrt[(c + d*Sin[e + f*x])/(c + d)]/Sqrt[c + d*Sin[e + f*x]], Int[1/((a + b*Sin[e + f*x])*Sqrt[c/(c + d) + (d/
(c + d))*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && N
eQ[c^2 - d^2, 0] && !GtQ[c + d, 0]
Rule 3068
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e
_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[(-(b*c - a*d))*(B*c - A*d)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 1
)*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(n + 1)*(c^2 - d^2))), x] + Dist[1/(d*(n + 1)*(c^2 - d^2)), Int[(a + b*Si
n[e + f*x])^(m - 2)*(c + d*Sin[e + f*x])^(n + 1)*Simp[b*(b*c - a*d)*(B*c - A*d)*(m - 1) + a*d*(a*A*c + b*B*c -
(A*b + a*B)*d)*(n + 1) + (b*(b*d*(B*c - A*d) + a*(A*c*d + B*(c^2 - 2*d^2)))*(n + 1) - a*(b*c - a*d)*(B*c - A*
d)*(n + 2))*Sin[e + f*x] + b*(d*(A*b*c + a*B*c - a*A*d)*(m + n + 1) - b*B*(c^2*m + d^2*(n + 1)))*Sin[e + f*x]^
2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2
, 0] && GtQ[m, 1] && LtQ[n, -1]
Rule 3081
Int[(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)]))/((c_.) + (d_.)*sin[
(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[B/d, Int[(a + b*Sin[e + f*x])^m, x], x] - Dist[(B*c - A*d)/d, Int[(a +
b*Sin[e + f*x])^m/(c + d*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0]
&& NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Rule 3128
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (B_.)
*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Cos[e + f*x]*(a + b*Sin[e
+ f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(m + n + 2))), x] + Dist[1/(d*(m + n + 2)), Int[(a + b*Sin[e + f*
x])^(m - 1)*(c + d*Sin[e + f*x])^n*Simp[a*A*d*(m + n + 2) + C*(b*c*m + a*d*(n + 1)) + (d*(A*b + a*B)*(m + n +
2) - C*(a*c - b*d*(m + n + 1)))*Sin[e + f*x] + (C*(a*d*m - b*c*(m + 1)) + b*B*d*(m + n + 2))*Sin[e + f*x]^2, x
], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d
^2, 0] && GtQ[m, 0] && !(IGtQ[n, 0] && ( !IntegerQ[m] || (EqQ[a, 0] && NeQ[c, 0])))
Rule 3138
Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2)/(Sqrt[(a_.) + (b_.)*sin[(e_.) +
(f_.)*(x_)]]*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])), x_Symbol] :> Dist[C/(b*d), Int[Sqrt[a + b*Sin[e + f*x]]
, x], x] - Dist[1/(b*d), Int[Simp[a*c*C - A*b*d + (b*c*C - b*B*d + a*C*d)*Sin[e + f*x], x]/(Sqrt[a + b*Sin[e +
f*x]]*(c + d*Sin[e + f*x])), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2
- b^2, 0] && NeQ[c^2 - d^2, 0]
Rubi steps
\begin {align*} \int (a+b \cos (c+d x))^{5/2} (A+B \cos (c+d x)) \sec ^2(c+d x) \, dx &=\frac {a A (a+b \cos (c+d x))^{3/2} \tan (c+d x)}{d}+\int \sqrt {a+b \cos (c+d x)} \left (\frac {1}{2} a (5 A b+2 a B)+b (A b+2 a B) \cos (c+d x)-\frac {1}{2} b (3 a A-2 b B) \cos ^2(c+d x)\right ) \sec (c+d x) \, dx\\ &=-\frac {b (3 a A-2 b B) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {a A (a+b \cos (c+d x))^{3/2} \tan (c+d x)}{d}+\frac {2}{3} \int \frac {\left (\frac {3}{4} a^2 (5 A b+2 a B)+\frac {1}{2} b \left (9 a A b+9 a^2 B+b^2 B\right ) \cos (c+d x)-\frac {1}{4} b \left (3 a^2 A-6 A b^2-14 a b B\right ) \cos ^2(c+d x)\right ) \sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx\\ &=-\frac {b (3 a A-2 b B) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {a A (a+b \cos (c+d x))^{3/2} \tan (c+d x)}{d}-\frac {2 \int \frac {\left (-\frac {3}{4} a^2 b (5 A b+2 a B)-\frac {1}{4} b \left (3 a^3 A+12 a A b^2+4 a^2 b B+2 b^3 B\right ) \cos (c+d x)\right ) \sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{3 b}+\frac {1}{6} \left (-3 a^2 A+6 A b^2+14 a b B\right ) \int \sqrt {a+b \cos (c+d x)} \, dx\\ &=-\frac {b (3 a A-2 b B) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {a A (a+b \cos (c+d x))^{3/2} \tan (c+d x)}{d}+\frac {1}{2} \left (a^2 (5 A b+2 a B)\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx-\frac {1}{6} \left (-3 a^3 A-12 a A b^2-4 a^2 b B-2 b^3 B\right ) \int \frac {1}{\sqrt {a+b \cos (c+d x)}} \, dx+\frac {\left (\left (-3 a^2 A+6 A b^2+14 a b B\right ) \sqrt {a+b \cos (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}} \, dx}{6 \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}\\ &=-\frac {\left (3 a^2 A-6 A b^2-14 a b B\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {b (3 a A-2 b B) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {a A (a+b \cos (c+d x))^{3/2} \tan (c+d x)}{d}+\frac {\left (a^2 (5 A b+2 a B) \sqrt {\frac {a+b \cos (c+d x)}{a+b}}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{2 \sqrt {a+b \cos (c+d x)}}-\frac {\left (\left (-3 a^3 A-12 a A b^2-4 a^2 b B-2 b^3 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{6 \sqrt {a+b \cos (c+d x)}}\\ &=-\frac {\left (3 a^2 A-6 A b^2-14 a b B\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {\left (3 a^3 A+12 a A b^2+4 a^2 b B+2 b^3 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \sqrt {a+b \cos (c+d x)}}+\frac {a^2 (5 A b+2 a B) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}-\frac {b (3 a A-2 b B) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {a A (a+b \cos (c+d x))^{3/2} \tan (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 14.03, size = 442, normalized size = 1.49 \begin {gather*} \frac {\frac {8 b \left (9 a A b+9 a^2 B+b^2 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}+\frac {2 \left (27 a^2 A b+6 A b^3+12 a^3 B+14 a b^2 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}+\frac {2 i \left (-3 a^2 A+6 A b^2+14 a b B\right ) \sqrt {-\frac {b (-1+\cos (c+d x))}{a+b}} \sqrt {\frac {b (1+\cos (c+d x))}{-a+b}} \csc (c+d x) \left (-2 a (a-b) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )+b \left (-2 a F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )+b \Pi \left (\frac {a+b}{a};i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )\right )}{a b \sqrt {-\frac {1}{a+b}}}+4 \sqrt {a+b \cos (c+d x)} \left (3 a^2 A+2 b^2 B \cos (c+d x)\right ) \tan (c+d x)}{12 d} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[(a + b*Cos[c + d*x])^(5/2)*(A + B*Cos[c + d*x])*Sec[c + d*x]^2,x]
[Out]
((8*b*(9*a*A*b + 9*a^2*B + b^2*B)*Sqrt[(a + b*Cos[c + d*x])/(a + b)]*EllipticF[(c + d*x)/2, (2*b)/(a + b)])/Sq
rt[a + b*Cos[c + d*x]] + (2*(27*a^2*A*b + 6*A*b^3 + 12*a^3*B + 14*a*b^2*B)*Sqrt[(a + b*Cos[c + d*x])/(a + b)]*
EllipticPi[2, (c + d*x)/2, (2*b)/(a + b)])/Sqrt[a + b*Cos[c + d*x]] + ((2*I)*(-3*a^2*A + 6*A*b^2 + 14*a*b*B)*S
qrt[-((b*(-1 + Cos[c + d*x]))/(a + b))]*Sqrt[(b*(1 + Cos[c + d*x]))/(-a + b)]*Csc[c + d*x]*(-2*a*(a - b)*Ellip
ticE[I*ArcSinh[Sqrt[-(a + b)^(-1)]*Sqrt[a + b*Cos[c + d*x]]], (a + b)/(a - b)] + b*(-2*a*EllipticF[I*ArcSinh[S
qrt[-(a + b)^(-1)]*Sqrt[a + b*Cos[c + d*x]]], (a + b)/(a - b)] + b*EllipticPi[(a + b)/a, I*ArcSinh[Sqrt[-(a +
b)^(-1)]*Sqrt[a + b*Cos[c + d*x]]], (a + b)/(a - b)])))/(a*b*Sqrt[-(a + b)^(-1)]) + 4*Sqrt[a + b*Cos[c + d*x]]
*(3*a^2*A + 2*b^2*B*Cos[c + d*x])*Tan[c + d*x])/(12*d)
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1562\) vs.
\(2(361)=722\).
time = 0.49, size = 1563, normalized size = 5.28
| | |
method |
result |
size |
| | |
default |
\(\text {Expression too large to display}\) |
\(1563\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((a+b*cos(d*x+c))^(5/2)*(A+B*cos(d*x+c))*sec(d*x+c)^2,x,method=_RETURNVERBOSE)
[Out]
-1/3*((2*cos(1/2*d*x+1/2*c)^2*b+a-b)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-16*B*cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^
6*b^3+(12*A*a^2*b+8*B*a*b^2+16*B*b^3)*sin(1/2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c)+(-6*A*a^3-6*A*a^2*b-4*B*a*b^2-4*
B*b^3)*sin(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1/2*c)-2*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2
+(a+b)/(a-b))^(1/2)*(3*A*EllipticF(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^3+12*A*EllipticF(cos(1/2*d*x+1/2*c
),(-2*b/(a-b))^(1/2))*a*b^2-3*A*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^3+3*A*EllipticE(cos(1/2*d*x
+1/2*c),(-2*b/(a-b))^(1/2))*a^2*b+6*A*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a*b^2-6*A*EllipticE(cos
(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*b^3-15*A*EllipticPi(cos(1/2*d*x+1/2*c),2,(-2*b/(a-b))^(1/2))*a^2*b+4*B*Ell
ipticF(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^2*b+2*B*EllipticF(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*b^3+1
4*B*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^2*b-14*B*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2
))*a*b^2-6*B*EllipticPi(cos(1/2*d*x+1/2*c),2,(-2*b/(a-b))^(1/2))*a^3)*sin(1/2*d*x+1/2*c)^2+3*A*(sin(1/2*d*x+1/
2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1
/2))*a^3+12*A*a*b^2*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticF
(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))-3*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b
)/(a-b))^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^3+3*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-
b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^2*b+6*A*(sin(1/2
*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a
-b))^(1/2))*a*b^2-6*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*Ellipti
cE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*b^3-15*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)
^2+(a+b)/(a-b))^(1/2)*EllipticPi(cos(1/2*d*x+1/2*c),2,(-2*b/(a-b))^(1/2))*a^2*b+4*a^2*b*B*(sin(1/2*d*x+1/2*c)^
2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))+
2*b^3*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticF(cos(1/2*d*x
+1/2*c),(-2*b/(a-b))^(1/2))+14*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1
/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^2*b-14*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1
/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a*b^2-6*B*(sin(1/2*d*x+1/2
*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticPi(cos(1/2*d*x+1/2*c),2,(-2*b/(a-b))^
(1/2))*a^3)/(-2*sin(1/2*d*x+1/2*c)^4*b+(a+b)*sin(1/2*d*x+1/2*c)^2)^(1/2)/(2*cos(1/2*d*x+1/2*c)^2-1)/sin(1/2*d*
x+1/2*c)/(-2*sin(1/2*d*x+1/2*c)^2*b+a+b)^(1/2)/d
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))^(5/2)*(A+B*cos(d*x+c))*sec(d*x+c)^2,x, algorithm="maxima")
[Out]
integrate((B*cos(d*x + c) + A)*(b*cos(d*x + c) + a)^(5/2)*sec(d*x + c)^2, x)
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))^(5/2)*(A+B*cos(d*x+c))*sec(d*x+c)^2,x, algorithm="fricas")
[Out]
integral((B*b^2*cos(d*x + c)^3 + A*a^2 + (2*B*a*b + A*b^2)*cos(d*x + c)^2 + (B*a^2 + 2*A*a*b)*cos(d*x + c))*sq
rt(b*cos(d*x + c) + a)*sec(d*x + c)^2, x)
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))**(5/2)*(A+B*cos(d*x+c))*sec(d*x+c)**2,x)
[Out]
Timed out
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))^(5/2)*(A+B*cos(d*x+c))*sec(d*x+c)^2,x, algorithm="giac")
[Out]
integrate((B*cos(d*x + c) + A)*(b*cos(d*x + c) + a)^(5/2)*sec(d*x + c)^2, x)
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\left (A+B\,\cos \left (c+d\,x\right )\right )\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{5/2}}{{\cos \left (c+d\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(((A + B*cos(c + d*x))*(a + b*cos(c + d*x))^(5/2))/cos(c + d*x)^2,x)
[Out]
int(((A + B*cos(c + d*x))*(a + b*cos(c + d*x))^(5/2))/cos(c + d*x)^2, x)
________________________________________________________________________________________